Handle removed events when rendering logs (#1634)

Andrew Cantino 7 years ago
parent
commit
577b441382
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/views/logs/index.html.erb

+ 3 - 3
app/views/logs/index.html.erb

@@ -13,13 +13,13 @@
13 13
 
14 14
         <td>
15 15
           <div class="btn-group btn-group-xs">
16
-            <% if log.inbound_event_id.present? %>
16
+            <% if log.inbound_event.present? %>
17 17
               <%= link_to 'Event In', event_path(log.inbound_event), class: "btn btn-default" %>
18 18
             <% else %>
19 19
               <%= link_to 'Event In', '#', class: "btn btn-default disabled" %>
20 20
             <% end %>
21 21
 
22
-            <% if log.outbound_event_id.present? %>
22
+            <% if log.outbound_event.present? %>
23 23
               <%= link_to 'Event Out', event_path(log.outbound_event), class: "btn btn-default" %>
24 24
             <% else %>
25 25
               <%= link_to 'Event Out', '#', class: "btn btn-default disabled" %>
@@ -31,4 +31,4 @@
31 31
       </tr>
32 32
     <% end %>
33 33
   </table>
34
-</div>
34
+</div>